<?php
/*
 * @Descripttion: 
 * @version: v1
 * @Author: Terry
 * @Date: 2021-11-01 18:07:40
 * @LastEditors: Terry
 * @LastEditTime: 2021-11-02 16:29:05
 */
function socketRes($code,$data,$msg=''){
    return json_encode([
        'code'=>$code,
        'data'=>$data,
        'msg'=>$msg,
    ]);
}